Searcher
Searches provided inputs by name and/or description with optional search decorators
SearchType.NORMAL - No search decorations - searches the Translatable.Result.name parameters of the provided SearchContent list.
SearchType.NEGATION - '-' in front of search - excludes matches from the Translatable.Result.name parameters of the provided SearchContent list.
SearchType.DESCRIPTION - '$' in front of search - searches the Translatable.Result.desc and Translatable.Result.prefix parameters of the provided SearchContent list.
SearchType.NEGATE_DESCRIPTION - '-$' in front of search - excludes matches from the Translatable.Result.desc and Translatable.Result.prefix parameters of the provided SearchContent list.
SearchType.EXACT - surround search with "" - searches for an exact match from the Translatable.Result.name parameters of the provided SearchContent list.
SearchType.NEGATE_EXACT - surround search with -"" - excludes an exact match from the Translatable.Result.name parameters of the provided SearchContent list.
SearchType.REGEX - surround search with // - searches the Translatable.Result.name parameters of the provided SearchContent list by matching them against the provided regex pattern. This is not efficient.
SearchType.NEGATE_REGEX - surround search with -// - excludes matches from the Translatable.Result.name parameters of the provided SearchContent list by matching them against the provided regex pattern. This is not efficient.
Author
fzzyhmstrs
Since
0.6.0, added regex searching 0.7.0
Parameters
subclass of SearchContent
List<C> list of SearchContent entries to search through.
Types
A searchable item. It can provide a name, an optional description, and whether it should be skipped in the current search.